package com.xueyiyue.xueyiyue.dao;

import com.xueyiyue.xueyiyue.model.entity.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    List<NewsListVo> getNewsList(NewsListVo newsListVo);
    List<JobsListVo> getJobsList(JobsListVo jobsListVo);
    List<Dictionary> getDicData(Dictionary dictionary);
    List<JobsListVo> getFavoriteJobsList(Favorite favorite);
    List<NewsListVo> getFavoriteNewsList(Favorite favorite);
    Integer addUser(UserInfo userInfo);
    Integer updateUser(UserInfo userInfo);
    Integer addUserDetail(UserInfoDetail userInfoDetail);
    Integer updateUserDetail(UserInfoDetail userInfoDetail);
    UserInfoDetail getUserInfoDetail(UserInfoDetail userInfoDetail);
    Integer deleteNews(NewsVo newsVo);
    Integer deleteJobs(JobsVo jobsVo);
    UserInfo getUserInfo(String openId);
    Integer createNews(NewsVo newsVo);
    Integer createJobs(JobsVo jobsVo);
    Integer deleteFavorite(Favorite favorite);
    Integer insertFavorite(Favorite favorite);
}
